package games.flvPlayer.ui
{
	import flash.events.Event;
	import flash.media.Video;
	
	import games.flvPlayer.data.PlayerShowInfo;

	public class ShowVideo
	{
		private var m_video:Video;
		private var m_info:PlayerShowInfo;
		
		public function ShowVideo(v:Video,info:PlayerShowInfo)
		{
			m_video = v;
			m_info = info;
			m_info.addEventListener(Event.CHANGE,onChangeInfo);
		}
		
		private function onChangeInfo(e:Event):void
		{
			m_video.x = m_info.x;
			m_video.y = m_info.y;
			m_video.width = m_info.width;
			m_video.height = m_info.height;
		}
		
	}
}